/**
 *
 */
package org.t2.game.server.module.tips;

import org.gaming.prefab.IGameCause;

/**
 * @author YY
 */
public enum GameCause implements IGameCause {
    
    GM(100001, "GM命令"),
    GOD_FINGER(100002, "金手指"),
    
    RECHARGE(600001, "充值"),
    RECHARGE_VIRTUAL(600002, "虚拟充值GM充值"),
    RECHARGE_VOUCHER(600003, "代金券充值"),
    
    
    MAIL_SYS(700001, "后台邮件"),
    MAIL_DAILY_REWARD(700002, "每日登录奖励"),
    
    ;

    private final int code;
    private final String desc;
    //是否可以超限制
    private final boolean overLimit;
    private final boolean mergeRewards;
    
    private GameCause(int code, String desc, boolean overLimit, boolean mergeRewards) {
        this.code = code;
        this.desc = desc;
        this.overLimit = overLimit;
        this.mergeRewards = mergeRewards;
    } 
    private GameCause(int code, String desc) {
        this.code = code;
        this.desc = desc;
        this.overLimit = true;
        this.mergeRewards = true;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
    
	public boolean isOverLimit() {
		return overLimit;
	}
	public boolean isMergeRewards() {
		return mergeRewards;
	}
}
